﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace LIMIS.Models
{
    public abstract class Unit{}

    [Table("GridUnit")]
    public class GridUnit : Unit
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public string Name { get; set; }
        public string LegalPerson { get; set; }
        public string DepartmentLeader { get; set; }
        public string DepartmentLeaderPhone { get; set; }
    }
    [Table("EmployerUnit")]
    public class EmployerUnit : Unit
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public string Name { get; set; }
        public string LegalPerson { get; set; }
        public string HrLeader { get; set; }
        public string HrLeaderPhone { get; set; }
    }
}